POST
/
1
/
indexes
/
*
/
objects
// Initialize the client
var client = new SearchClient(new SearchConfig("ALGOLIA_APPLICATION_ID", "ALGOLIA_API_KEY"));

// Call the API
var response = await client.GetObjectsAsync<Hit>(
  new GetObjectsParams
  {
    Requests = new List<GetObjectsRequest>
    {
      new GetObjectsRequest
      {
        AttributesToRetrieve = new List<string> { "attr1", "attr2" },
        ObjectID = "uniqueID",
        IndexName = "<YOUR_INDEX_NAME>",
      },
    },
  }
);
// >LOG
{
  "message": "Index INDEX_NAME does not exist.",
  "results": [
    {}
  ]
}

Authorizations

x-algolia-application-id
string
header
required

Your Algolia application ID.

x-algolia-api-key
string
header
required

Your Algolia API key with the necessary permissions to make the request. Permissions are controlled through access control lists (ACL) and access restrictions. The required ACL to make a request is listed in each endpoint's reference.

Body

application/json

Request object.

Request parameters.

Response

200
application/json

OK

The response is of type object.